<?php


namespace api\web\model;


use think\Model;

class NavModel extends Model
{
    protected $name='navigation';

    public function child()
    {
        return $this->hasMany(NavModel::class,'parent_id','id');
    }

}